//
//  ST_TrophyValueWidget.swift
//  btvideo
//
//  Created by mac on 2021/7/8.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit

class ST_TrophyValueWidget: UIView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        addSubview(titleLabel)
        titleLabel.snp.makeConstraints { (make) in
            make.edges.equalToSuperview().inset(UIEdgeInsets(top: 2, left: 8, bottom: 2, right: 8))
        }
        self.cornerRadius = 10
    }
    
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    fileprivate lazy var titleLabel:UILabel = {
        let control = UILabel()
        return control
    }()
    
    var title = NSAttributedString(){
        didSet{
            titleLabel.attributedText = title
        }
    }
    
}
